package cn.isjinhao.crws.sql.grammar;

import cn.isjinhao.crws.sql.lexical.token.Token;

/**
 * @Author ISJINHAO
 * @Date 2021/3/2 19:53
 */
public abstract class Binary extends CurdStatement {

    private CurdStatement leftCurdStatement;

    private Token token;

    private CurdStatement rightCurdStatement;

    public Binary(CurdStatement leftCurdStatement, Token token, CurdStatement rightCurdStatement) {
        this.leftCurdStatement = leftCurdStatement;
        this.token = token;
        this.rightCurdStatement = rightCurdStatement;
    }

    public CurdStatement getLeftSelectStatement() {
        return leftCurdStatement;
    }

    public Token getToken() {
        return token;
    }

    public CurdStatement getRightSelectStatement() {
        return rightCurdStatement;
    }
}
